package com.wmh.baseservice.operationaid.pojo.vo.store;

import com.wmh.baseservice.operationaid.entity.TbStoreData;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author 谢骏
 * @date 2023/7/5 11:06
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "淘宝店铺指数字段封装")
public class TbStoreExponentField {

   /**
    * 支付金额
    * */
    private BigDecimal amountPaid;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    /**
     * 访客数量
     */
    private Long visitorsNum;

    /**
     * 支付转化率
     */
    private BigDecimal payTransformRate;

    /**
     * 直通车花费
     */
    private BigDecimal ztcSpend;

    /**
     * 引力魔方花费
     */
    private BigDecimal ylmfSpend;

    /**
     * 万象台花费
     */
    private BigDecimal wxtSpend;

    /**
     * 直播间金额
     */
    private BigDecimal liveRoomAmount;

    /**
     * 直通车成交额
     */
    private BigDecimal ztcTransactionAmount;

    /**
     * 引力魔方成交额
     */
    private BigDecimal ylmfTransactionAmount;

    /**
     * 万象台成交额
     */
    private BigDecimal wxtTransactionAmount;

    /**
     * 补单数
     */
    private Integer fillOrderNum;

    /**
     * 刷单金额
     */
    private BigDecimal brushOrdersAmount;

    public static TbStoreExponentField builder(TbStoreData t){
        TbStoreExponentField tbStoreExponentField = new TbStoreExponentField();
        tbStoreExponentField.setAmountPaid(t.getAmountPaid());
        tbStoreExponentField.setRefundAmount(t.getRefundAmount());
        tbStoreExponentField.setVisitorsNum(t.getVisitorsNum());
        tbStoreExponentField.setPayTransformRate(t.getPayTransformRate());
        tbStoreExponentField.setZtcSpend(t.getZtcSpend());
        tbStoreExponentField.setYlmfSpend(t.getYlmfSpend());
        tbStoreExponentField.setWxtSpend(t.getWxtSpend());
        tbStoreExponentField.setLiveRoomAmount(t.getLiveRoomAmount());
        tbStoreExponentField.setZtcTransactionAmount(t.getZtcTransactionAmount());
        tbStoreExponentField.setYlmfTransactionAmount(t.getYlmfTransactionAmount());
        tbStoreExponentField.setWxtTransactionAmount(t.getWxtTransactionAmount());
        tbStoreExponentField.setFillOrderNum(t.getFillOrderNum());
        tbStoreExponentField.setBrushOrdersAmount(t.getBrushOrdersAmount());
        return tbStoreExponentField;
    }
}
